package com.njwb.day07;

public class Test接口多继承 {
    public static void main(String[] args) {
        K l=new L();
        l.fn1();
        l.fn2();
    }
}

interface I{
    void fn1();
}

interface J{
    void fn2();
}

interface K extends I,J{

}

class L implements K{

    @Override
    public void fn1() {
        System.out.println("L.fn1");
    }

    @Override
    public void fn2() {
        System.out.println("L.fn2");
    }
}